<?php
defined('IN_MAIN') or exit('Invalid Access!');

function stockist_id_found($sid){
	global $vars;
	$db=$vars["db"];
	if(strlen($sid)){
		return @mysql_num_rows(mysql_query("select * from $db->users where id='$sid' and is_stockist='y'")) or false;
	}
}

function stockist_sid_found($sid){
	global $vars;
	$db=$vars["db"];
	if(strlen($sid)){
		return @mysql_num_rows(mysql_query("select * from $db->users where sid='$sid' and is_stockist='y'")) or false;
	}
}
?>